<div class="portlet">
    <div class="portlet-actions">
        <button class="btn blue btn-sm" ng-click="grid.add()"><i class="fa fa-plus"></i> 新增</button>
    </div>
    <form class="portlet-search-body" name="queryForm">
     <input type="text" class="form-control search-item" ng-model="workTypeName" placeholder="工序名称">
        <div class="search-item">
            <button class="btn btn-icon-only default"><i class="fa fa-chevron-right"></i></button>
            <button class="btn btn-sm query" ng-click="grid.query();"><i class="fa fa-search"></i> 查询</button>
            <button class="btn btn-sm reset" ng-click="grid.reset();"><i class="fa fa-eraser"></i> 重置</button>
        </div>
    </form>
    <div class="portlet-body">
        <table ed-grid="grid"  class="table table-striped table-bordered table-advance table-hover"
               data-options="url: 'workType/query.do', modelText: '工序列表', form: 'queryForm', modal: 'modal'">
            <thead>
            <tr>
                <th data-options="field: 'workTypeName'">定额工序名称</th>
                <th data-options="field: 'quota'">定额值</th>
                <th data-options="field: 'remark'">备注</th>
                <th>操作</th>
            </tr>
            </thead>
        </table>
    </div>
</div>

<div ed-modal="modal" data-options="title: '工序配置', static: true, width: 720, defaultButton:false,onHidden:'reset'">
    <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate name="validateForm">
        <div class="form-body">
			<div class="form-group">
				<label class="col-md-4 control-label">定额工序名称</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="workTypeName" ng-model="workType.workTypeName" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-4 control-label">定额值</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="quota" ng-model="workType.quota" ed-validate="integer" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-4 control-label">备注</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="remark" ng-model="workType.remark" required>
				</div>
			</div>
        </div>
        <div class="form-actions">
            <button type="button" class="btn default" ng-click="grid.cancel();">
                <i class="fa fa-times"></i> 取消
            </button>
            <button type="button" class="btn blue" ng-click="grid.save();">
                <i class="fa fa-times"></i> 确定
            </button>
        </div>
    </form>
</div>
